import request from '@/utils/request'

export function list(param){
	return request({
		url:'/score/courseAssess/list',
		method:'get',
		params:param
	})
}
export function exports(param){
	return request({
		url:'/score/courseAssess/export',
		method:'post',
		data:param
	})
}
export function getInfo(id){
	return request({
		url:'/score/courseAssess/'+id,
		method:'get'
	})
}
export function add(param){
	return request({
		url:'/score/courseAssess/add',
		method:'post',
		data:param
	})
}
export function update(param){
	return request({
		url:'/score/courseAssess/update',
		method:'put',
		data:param
	})
}
export function deletes(id){
	return request({
		url:'/score/courseAssess/delete/'+id,
		method:'delete'
	})
}
export function getAverage(courseId){
	return request({
		url:'/score/courseAssess/getAverage/'+courseId,
		method:'get'
	})
}
export function getScore(courseId){
	return request({
		url:'/score/courseAssess/getScore/'+courseId,
		method:'get'
	})
}